using SqlSugar;
using System;

namespace B.S.XZYData.Domain.ZSH
{
	/// <summary>
	/// 报工-不良品项子表
	/// </summary>
	[SugarTable("WorkReportDefectiveItem")]
	public class WorkReportDefectiveItem
	{
		/// <summary>
		/// 主键，自增
		/// </summary>
		[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// 关联报工主表Id
		/// </summary>
		public int WorkReportId { get; set; }

		/// <summary>
		/// 不良品项编码（关联字典/主数据）
		/// </summary>
		[SugarColumn(Length = 50, IsNullable = false)]
		public string DefectiveCode { get; set; }

		/// <summary>
		/// 不良品数量
		/// </summary>
		public int DefectiveQty { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public DateTime CreateTime { get; set; }= DateTime.Now;

        /// <summary>
        /// 创建人ID（关联User.Id）
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public int CreatorId { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        /// 最后修改人ID（关联User.Id）
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public int? ModifierId { get; set; }

		/// <summary>
		/// 伪删除标记（false=未删除，true=已删除）
		/// </summary>
		[SugarColumn(IsNullable = false)]
		public bool IsDeleted { get; set; } = false;
    }
}


